package com.ssb.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssb.dao.GoodsMapper;
import com.ssb.po.Goods;
import com.ssb.po.GoodsExample;
import com.ssb.service.GoodsService;
@Service
public class GoodsServiceImpl implements GoodsService {
	@Autowired
	private GoodsMapper goodsMapper;
	@Override
	public int insert(Goods record) {
		return goodsMapper.insert(record);
	}
	@Override
	public int insertSelective(Goods record) {
		return goodsMapper.insertSelective(record);
	}
	@Override
	public List<Goods> selectByExample(GoodsExample example) {
		return goodsMapper.selectByExample(example);
	}
	@Override
	public Goods selectByPrimaryKey(Integer id) {
		return goodsMapper.selectByPrimaryKey(id);
	}
	@Override
	public int updateByPrimaryKeySelective(Goods record) {
		return goodsMapper.updateByPrimaryKeySelective(record);
	}
	@Override
	public int updateByPrimaryKey(Goods record) {
		return goodsMapper.updateByPrimaryKey(record);
	}

}
